@echo off
REM pause Is the target on %1 in FLASH mode ? Press <Enter> to start:
lua %~dp0flash.lua %*

if "%errorlevel%"=="0" lua %~dp0monitor.lua %1
